/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package liftsimulator;

/**
 *
 * @author Michael Peever & Alex Pool
 */
public class Lift {
    
    int width = 40;
    int height = 40;
    int liftCurrentYPos;
    String direction = "DOWN";
    String status = "OPENING";    
    boolean isDoorsClosed = true;
    LiftDoor ld = new LiftDoor();
    int desiredFloor;
    
    
    
    public Lift(int position) {
        this.liftCurrentYPos = position;
    }
    
    public void setDesiredFloor(int desiredFloor){
        this.desiredFloor = desiredFloor;
    }
    
    public int getDesiredFloor(){
        return this.desiredFloor;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }

    public int getLiftCurrentYPos() {
        return liftCurrentYPos;
    }
    

    public String getDirection() {
        return direction;
    }

    public String getStatus() {
        return status;
    }

    //sets the desired floor
    public void setLiftCurrentYPos(int liftCurrentYPos) {
        this.liftCurrentYPos = liftCurrentYPos;
    }    

    public void setDirection(String direction) {
        this.direction = direction;
    }
    
    public void setStatus(String status) {
        this.status = status;
    }

    public boolean isDoorsClosed() {
        return isDoorsClosed;
    }

    public void setIsDoorsClosed(boolean isDoorsClosed) {
        this.isDoorsClosed = isDoorsClosed;
    }
    
}
